const Mock = require("mockjs");
const Random = Mock.Random;
//常用商品
Mock.mock("/api/oftenGoods", (req, res) => {
  return [
    {
      goodsId: "a1",
      goodsName: "香辣鸡腿堡a",
      price: 18
    },
    {
      goodsId: "a2",
      goodsName: "田园鸡腿堡a",
      price: 15
    },
    {
      goodsId: "a3",
      goodsName: "和风汉堡a",
      price: 15
    },
    {
      goodsId: "a4",
      goodsName: "快乐全家桶a",
      price: 80
    },
    {
      goodsId: "a5",
      goodsName: "脆皮炸鸡腿a",
      price: 10
    },
    {
      goodsId: "a6",
      goodsName: "魔法鸡块a",
      price: 20
    },
    {
      goodsId: "a7",
      goodsName: "可乐大杯",
      price: 10
    },
    {
      goodsId: "a8",
      goodsName: "雪顶咖啡a",
      price: 18
    },
    {
      goodsId: "a9",
      goodsName: "大块鸡米花a",
      price: 15
    },
    {
      goodsId: "a20",
      goodsName: "香脆鸡柳a",
      price: 17
    }
  ];
});
//汉堡类
Mock.mock("/api/typeGoods", (req, res) => {
  return [
    //汉堡类
    [
      {
        goodsId: 1,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "香辣鸡腿堡",
        price: 18
      },
      {
        goodsId: 2,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "田园鸡腿堡",
        price: 15
      },
      {
        goodsId: 3,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "和风汉堡",
        price: 15
      },
      {
        goodsId: 4,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "快乐全家桶",
        price: 80
      },
      {
        goodsId: 5,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "脆皮炸鸡腿",
        price: 10
      },
      {
        goodsId: 6,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "魔法鸡块",
        price: 20
      },
      {
        goodsId: 7,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "可乐大杯",
        price: 10
      },
      {
        goodsId: 8,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "雪顶咖啡",
        price: 18
      },
      {
        goodsId: 9,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "大块鸡米花",
        price: 15
      },
      {
        goodsId: 20,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "香脆鸡柳",
        price: 17
      }
    ],
    //小食类
    [
      {
        goodsId: 1,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "香辣鸡腿堡",
        price: 18
      },
      {
        goodsId: 2,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "田园鸡腿堡",
        price: 15
      },
      {
        goodsId: 3,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "和风汉堡",
        price: 15
      },
      {
        goodsId: 4,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "快乐全家桶",
        price: 80
      },
      {
        goodsId: 5,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "脆皮炸鸡腿",
        price: 10
      },
      {
        goodsId: 6,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "魔法鸡块",
        price: 20
      },
      {
        goodsId: 7,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "可乐大杯",
        price: 10
      },
      {
        goodsId: 8,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "雪顶咖啡",
        price: 18
      },
      {
        goodsId: 9,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "大块鸡米花",
        price: 15
      }
    ],
    //饮料类
    [
      {
        goodsId: 1,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "香辣鸡腿堡",
        price: 18
      },
      {
        goodsId: 2,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "田园鸡腿堡",
        price: 15
      },
      {
        goodsId: 3,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "和风汉堡",
        price: 15
      },
      {
        goodsId: 4,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "快乐全家桶",
        price: 80
      },
      {
        goodsId: 5,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "脆皮炸鸡腿",
        price: 10
      },
      {
        goodsId: 6,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "魔法鸡块",
        price: 20
      },
      {
        goodsId: 7,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "可乐大杯",
        price: 10
      },
      {
        goodsId: 8,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "雪顶咖啡",
        price: 18
      }
    ],
    //套餐类
    [
      {
        goodsId: 1,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "儿童欢乐套餐",
        price: 18
      },
      {
        goodsId: 2,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "田园鸡腿堡",
        price: 15
      },
      {
        goodsId: 3,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "和风汉堡",
        price: 15
      },
      {
        goodsId: 4,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "快乐全家桶",
        price: 80
      },
      {
        goodsId: 5,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "脆皮炸鸡腿",
        price: 10
      },
      {
        goodsId: 6,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "魔法鸡块",
        price: 20
      },
      {
        goodsId: 7,
        goodsImg:
          "http://imgqn.koudaitong.com/upload_files/2015/04/14/FuG_SOqd3iz3Bt4OEFP-X_r-_3wZ.jpg",
        goodsName: "可乐大杯",
        price: 10
      }
    ]
  ];
});
